package pkg;

import java.util.ArrayList;

public abstract class Toppings
{
	String label;
	double price;
	
	public Toppings(String c_label, double c_price)
	{
		label = c_label;
		price = c_price;
	}
	
	public String getLabel()
	{
		return label;
	}
	
	public double getPrice()
	{
		return price;
	}
	
	public static ArrayList<Toppings> getTypes()
	{
		ArrayList<Toppings> retList = new ArrayList<Toppings>();
		retList.add(new Sprinkles());
		retList.add(new Crushed_Peanuts());
		retList.add(new Maraschino_Cherries());
		return retList;
	}
}

class Sprinkles extends Toppings
{
	public Sprinkles()
	{
		super("Sprinkles", 0.50);
	}
}

class Crushed_Peanuts extends Toppings
{
	public Crushed_Peanuts()
	{
		super("Crushed Peanuts", 0.50);
	}
}

class Maraschino_Cherries extends Toppings
{
	public Maraschino_Cherries()
	{
		super("Maraschino Cherries", 1.00);
	}
}